package com.wyd.qxglmybatis.service;

import javax.annotation.Resource;

import com.wyd.qxglmybatis.dao.IRolesModuleDao;
import com.wyd.qxglmybatis.model.RolesModule;

import org.springframework.stereotype.Service;

@Service
public class RolesModuleServiceImpl implements IRolesModuleService {



    @Resource
    private IRolesModuleDao  rolesModuleDao;


    @Override
    public void addRolesModule(String rid, String[] r) {
      
        for(String module_id:r){

            RolesModule rm=new RolesModule();

            rm.setRole_id(rid);
            rm.setModule_id(module_id);;

            rolesModuleDao.addRolesModule(rm);


        }


    }
    



}